package com.leetCode.easy;

public class Demo1 {
    public static void main(String[] args) {
        String str = "123456";
        String s = str.substring(1);
        StringBuffer xs = new StringBuffer(s);
        int i = Integer.parseInt(xs.reverse().toString());
        System.out.println("i = " + i);

        System.out.println(s);
    }

}
